﻿<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>提案系统</title>
<link href="${ctx}/css/main/base.css" rel="stylesheet" type="text/css"/>
<link href="${ctx}/css/main/main.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
.loginbody{background:url(${ctx}/images/main/lgoinbg.gif) repeat-x;}
</style>
<style type="text/css">
<!--
.STYLE1 {
	color: #FFFFFF;
	font-family: "宋体";
	font-weight: bold;
	font-size: 16px;
}
.STYLE3 {font-size: 16px}
.STYLE5 {color: #FFFFFF; font-weight: bold; font-size: 16px; }
body {
	margin-top: 40px;
}
-->
</style>

<script type="text/javascript">
		 /**
		重新取得验证代码
		*/
		var count =1;
		function fetchCheckCodeImg(object){
		    object.src = '${ctx}/img?serialVersionUID='+count;
		    count++;
		}
		
		function userRegister(){
		window.location="${ctx}/user/user!preCreateUser.action?user.userFlag=2"
		}
	function submitIt() {
		document.forms[0].submit();
	}
</script>

<script language="javascript">
post2Server("${ctx}/web/web!findNoticeJson.action", null, function(u) {
	var notice = u.notice;
	var str = notice.content;
	if (str != null && str.length > 200) {
		str = str.substring(0,200);
	}
	document.getElementById("text").innerHTML = str;
});

function queryUserLogin() {
	var userName = getElementByIdValue("userName");
	var data = {'user.userName': userName};
	post2Server("${ctx}/web/web!findUser.action", data, function(u) {
		alert(u.userLoginString);
	});
}


</script>
</head>

<body>
<form action="${ctx}/index/user_login.action" method="post">
<input type="hidden" name="request_locale" value="zh_CN"/><!-- 用于struts2拦截器国际化 -->
<input type="hidden" name="tlds_locale" value="zh_CN"/><!-- 用于自定义标签国际化 -->
<input type="hidden" id="s" name="user.s" value="${user.s }"/>
<table width="1108" height="572" border="0" align="center">
  <tr>
    <td height="151"><img src="${ctx }/images/application/denglu03.jpg" width="1101" height="149" /></td>
  </tr>
  <tr>
    <td height="367" valign="middle" background="${ctx }/images/application/denglu06.jpg"><table width="650" height="298" border="0" align="center">
      <tr>
        <td width="170" height="30" background="${ctx }/images/application/denglu02.jpg">&nbsp;</td>
        <td width="10">&nbsp;</td>
        <td width="465" colspan="2" rowspan="2" valign="middle" 
        	<c:if test="${user.s == 0 }">background="${ctx }/images/application/denglu07.jpg"</c:if>
        	<c:if test="${user.s == 1 }">background="${ctx }/images/application/denglu01.jpg"</c:if>
        	><table width="293" height="173" border="0" align="center">
          <tr>
            <td width="103" height="70">&nbsp;</td>
            <td width="180">&nbsp;</td>
          </tr>
          <tr>
            <td height="35" align="center"><div align="right"><span class="STYLE3"></span></div><span class="STYLE3"><label>
              <div align="right"><span class="STYLE5">账　号：</span></div>
              </label>
            </span></td>
            <td><input name="user.userLogin" type="text" size="16" maxLength="30"/></td>
          </tr>
          <tr>
            <td height="35"  align="center"><div align="right"><span class="STYLE5">密　码：</span></div></td>
            <td><input type="password" name="user.userPwd" size="16" maxlength="50"></td>
          </tr>
          <tr>
            <td height="35" align="center"><div align="right"><span class="STYLE5">验证码：</span></div></td>
            <td><input type="text" name="code" maxlength="4" size="6">&nbsp;&nbsp;<img src="${ctx}/img" id="checkImg" alt="<s:text name="login.change.one"/>" onClick="fetchCheckCodeImg(this);" style="cursor: pointer;"  align="middle" /></td>
          </tr>
          <tr>
            <td colspan="2" align="center" >
	          	<input type="button" value="<s:text name='login.login'/>" class="log_f" onclick="submitIt();"/>　
	        	<input type="reset" value="<s:text name='login.reset'/>" onClick="javascript:window.close();" class="log_f" />　
	        </td>
            <td>&nbsp;</td>
          </tr>
          <tr><td>&nbsp;</td></tr>
          <tr>
          	<td colspan="2 height="35" align="center">
          	  <span class="STYLE5">姓名：<input name="user.userName" id="userName" type="text" size="16" maxLength="30"/></span>
          	  <input type="button" value="编号查询" class="log_f" onclick="queryUserLogin();"/>
          	</td>
          </tr>
        </table></td>
        </tr>
      <tr>
        <td valign="top" background="${ctx }/images/application/denglu05.jpg"><span id="text"></span>&nbsp;</td>
        <td height="262">&nbsp;</td>
        </tr>
      
    </table></td>
  </tr>
  <tr>
    <td height="34"><img src="${ctx }/images/application/denglu04.jpg" width="1100" height="44" /></td>
  </tr>
</table>
	<font color="red">${info}</font>
</form>
</body>
</html>